Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: internal websocket connection is heavy and unstable #373

Merged

Conversation

yihuang
Copy link
Collaborator

@yihuang yihuang commented Nov 9, 2023

Solution:

  • use local node client directly.

Closes: #XXX

Description


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

Solution:
- use local node client directly.
@yihuang yihuang requested a review from mmsqe November 9, 2023 01:51
@yihuang yihuang changed the base branch from develop to feature/subscription-refactor November 9, 2023 02:07
@yihuang yihuang marked this pull request as ready for review November 9, 2023 02:07
rpc/websockets.go Outdated Show resolved Hide resolved
@yihuang yihuang merged commit c333b37 into crypto-org-chain:feature/subscription-refactor Nov 10, 2023
19 of 25 checks passed
@yihuang yihuang deleted the no-internal-ws-2 branch November 10, 2023 07:28
yihuang added a commit that referenced this pull request Nov 14, 2023
* Problem: internal websocket connection is heavy and unstable (#373)

* Problem: internal websocket connection is heavy and unstable

Solution:
- use local node client directly.

* ignore duplicate subscriptions, it's possible in concurrency

* bigger start timeout

* handle error

* fix lint

* fix unit test

* rename

* fix test

* remove test

* add buffer

* Problem: channels are not efficient for broadcasting scenario (#374)

* implement stream

* rpc stream

* websocket use stream

* filter apis use stream

* cleanup

* move modules

* cleanup

* fix cond race

* fix lint

* nit

* fix build

* fix lint

* err return

* fix empty logs

* fix filter initial offset

* fix filter

* fix filter

* fix test

* changelog

* add comments
yihuang added a commit that referenced this pull request Nov 14, 2023
* Problem: internal websocket connection is heavy and unstable (#373)

* Problem: internal websocket connection is heavy and unstable

Solution:
- use local node client directly.

* ignore duplicate subscriptions, it's possible in concurrency

* bigger start timeout

* handle error

* fix lint

* fix unit test

* rename

* fix test

* remove test

* add buffer

* Problem: channels are not efficient for broadcasting scenario (#374)

* implement stream

* rpc stream

* websocket use stream

* filter apis use stream

* cleanup

* move modules

* cleanup

* fix cond race

* fix lint

* nit

* fix build

* fix lint

* err return

* fix empty logs

* fix filter initial offset

* fix filter

* fix filter

* fix test

* changelog

* add comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants